package com.edu.bean;

/**
 * @Author:何包蛋
 * @Date :2022/10/26 - 10 - 26 - 14:47
 */
public class Car {

    private int carId;

    private String carName;

    private String carColor;

    public int getCarId() {
        return carId;
    }

    public void setCarId(int carId) {
        this.carId = carId;
    }

    public String getCarName() {
        return carName;
    }

    public void setCarName(String carName) {
        this.carName = carName;
    }

    public String getCarColor() {
        return carColor;
    }

    public void setCarColor(String carColor) {
        this.carColor = carColor;
    }

    @Override
    public String toString() {
        return "Car{" +
                "carId=" + carId +
                ", carName='" + carName + '\'' +
                ", carColor='" + carColor + '\'' +
                '}';
    }

    public Car() {
        System.out.println("创建了car类");
    }

    public Car(int carId, String carName, String carColor) {
        this.carId = carId;
        this.carName = carName;
        this.carColor = carColor;
    }
}
